package com.qingcloud.adminbackend.entity.userrole;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 用户和身份关联表
 * </p>
 *
 * @author luozehua
 * @since 2018-12-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user_role")
public class SysUserRole extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /**
     * 身份ID
     */
    @ApiModelProperty(value = "角色ID")
    private Integer roleId;

    private Date createDt = new Date();

    private String createBy;

    private Date modifyDt = new Date();

    private String modifyBy;

}
